package com.turbo.cloud.ums.web.model.user;

import com.turbo.cloud.core.base.BaseModel;
import com.turbo.cloud.core.validated.InsertValidated;
import com.turbo.cloud.core.validated.UpdateValidated;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 修改密码实体
 * </p>
 *
 * @author zhangluning
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
public class UmsUserPwdQO extends BaseModel {

    /**
     * 当前密码
     */
    @NotBlank(message = "当前密码不能为空", groups = {UpdateValidated.class})
    private String password;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空", groups = {UpdateValidated.class})
    private String newPassword;

    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码不能为空", groups = {UpdateValidated.class})
    private String confirmPassword;

}
